package com.hex.ds.hdrs.period.task.dao;

import com.hex.bigdata.hbda.base.BaseDao;
import com.hex.ds.hdrs.period.task.dto.PeriodTaskStreamDto;
import com.hex.ds.hdrs.period.task.po.PeriodTaskStream;
import com.hex.ds.hdrs.period.task.po.PeriodTaskStreamHis;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class PeriodTaskStreamDao extends BaseDao {

    public void insert(Map map){
        this.insert("com.hex.ds.hdrs.period.task.dao.PeriodTaskStreamDao.insert",map);
    }

    public void delStreamInfo(List<String> list){
        this.delete("com.hex.ds.hdrs.period.task.dao.PeriodTaskStreamDao.delStreamInfo",list);
    }

    public void insertList(List<PeriodTaskStreamHis> list){
        this.insert("com.hex.ds.hdrs.period.task.dao.PeriodTaskStreamDao.insertList",list);
    }

    public List<PeriodTaskStream> selectList(PeriodTaskStreamDto periodTaskStreamDto) {
        return this.selectList(PeriodTaskStream.class,"com.hex.ds.hdrs.period.task.dao.PeriodTaskStreamDao.selectList",periodTaskStreamDto);
    }
}
